package ru.edu.usu.cs.bubbles.utils;

import android.view.View;

public class CoordConvertor {
    
    private static float TopLeftX;
    private static float TopLeftY;
    private static final float ScaleX = 1f;
    private static final float ScaleY = 1f;
    
    public static void setScreenSize(float width,float height) {
        TopLeftX = -width/2;
        TopLeftY = height/2;
    }
    
    public static Point ScreenToWorld(Point A) {
        return new Point((A.x/*+TopLeftX*/)/ScaleX,(A.y/*+TopLeftY*/)/ScaleY);
    }
    
}
